/**
 * <p>Title: DBUtil</p>
 * <p>Description: The tools of DBUtil</p>
 * <p>Copyright: Shanghai Batchsight Pharmaceutical Technologies, Inc. Copyright(c) 2016</p>
 * @author Wan Shuai Shuai
 * @version 1.0
 * <pre>Histroy:
 *       2016-12-13  Wan Shuai Shuai  Create
 *</pre>
*/
package cn.jhg.account.util;

import java.io.IOException;
import java.util.Properties;


/**
 * 用于加载properties文件
 * @author Administrator
 *
 */
public class DBUtil {	 
	public static Properties properties(String propUrl){
		 Properties prop = new Properties();
		 try {
			prop.load(DBUtil.class.getClassLoader().
				getResourceAsStream(propUrl));
			return prop;
		} catch (IOException e) {
			e.printStackTrace();
			prop.put("errorCode", 227264853); //异常错误代码
			return prop;
		} 
	 }          
}
